import { Toast } from 'vant'

export function loading (message, close) {
    if (typeof message == 'boolean') {
        Toast.clear()
    } else {
        Toast.loading({
            loadingType: 'circular',
            duration: 0,
            mask: true,
            message: message || ''
        })
    }
}
